pub mod mysql;

use serde::Deserialize;

#[derive(Debug, Deserialize)]
struct Message {
    recv: String,
    reply: String,
}

pub fn read_data() {
    let reader = csv::Reader::from_path("./data/msg.csv");
    match reader {
        Ok(mut res) => {
            let mut data = res.deserialize::<Vec<Message>>().next();
            println!("data: {:?}", data);
        }
        Err(_) => {}
    }
}

#[test]
pub fn test_csv() {
    read_data();
}